"use strict";
function SGo_getClickPos(elem, event)
{
    if (window.jQuery)
        return SGo_jQuery_getpos(elem,event);
    else
        return {x:-1,y:-1};
}

function SGo_jQuery_getpos(elem,event)
{    
   var parentOffset, pos={x:-1,y:-1};
   
   parentOffset = $(elem).parent().offset();    
   pos.x=event.pageX - parentOffset.left;
   pos.y=event.pageY - parentOffset.top;   
   return pos;
}


